package com.huihui.activity.mine;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import com.huihui.R;
import com.huihui.base.BaseActivity;
import com.huihui.utils.IntentUtils;

/**
 * 我的消息
 */
public class MineMsgActivity extends BaseActivity {

    private LinearLayout mine_pinglun;
    private LinearLayout mine_zan;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mine_msg);
//        getSupportActionBar().setTitle(R.string.msg_record);
        titleView.setText(R.string.msg_record);
        initView();
        initListener();
    }

    private void initView() {
        mine_pinglun = (LinearLayout) findViewById(R.id.mine_pinglun);
        mine_zan = (LinearLayout) findViewById(R.id.mine_zan);
    }

    private void initListener() {
        mine_pinglun.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                IntentUtils.gotoMineMsgSayActivity(getContext());
            }
        });

        mine_zan.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                IntentUtils.gotoMineMsgZanActivity(getContext());
            }
        });
    }
}
